<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./form_template.xhtml">

            <ui:define name="form_body">
                
                <p:layout fullPage="true">
                    <p:layoutUnit position="north" resizable="false" size="50"
                                  closable="false" collapsible="false"
                                  minSize="40">
                        <p:panelGrid>
                            <h:outputText value="#{usuarioBean.current.nombre} : #{usuarioBean.current.rol.nombre}"/>
                        </p:panelGrid>
                        
                    </p:layoutUnit>
                    <p:layoutUnit position="center" closable="false" collapsible="false">
                        <p:menubar model="#{menuBean.model}"/><br/>
                        <p:panel>
                            <f:facet name="header">
                                <ui:insert name="title_option"/>
                            </f:facet>
                            <ui:insert name="main"/>
                        </p:panel>
                        
                    </p:layoutUnit>
                </p:layout>
            </ui:define>

        </ui:composition>

    </body>
</html>
